package com.hpf.gupao.thread;

/**
 * @description:
 * @datetime: 2021/5/15 20:48
 * @author: huangpengfei
 */
public class ThreadRunnableDemo implements Runnable{

    @Override
    public void run() {
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("线程执行完了");
    }

    public static void main(String[] args){
        new Thread(new ThreadRunnableDemo()).start();
        System.out.println("The main thread end");
    }
}
